package com.neu.wms.service;



import com.neu.wms.dto.UserDto;
import com.neu.wms.vo.MenuVo;
import com.neu.wms.vo.UserVo;
import com.neu.wms.util.entity.SysUser;

import java.util.List;

public interface UserService {



    /**
     * 根据用户名查询用户角色
     * @param userName 用户名
     * @return 用户角色role_code
     */
    String[] selectRoleByUsername(String userName);


    /**
     * 根据用户名查询用户权限
     * @param userName 用户名
     * @return 用户权限permission_code
     */
    String[] selectPermissionByName(String userName);
    List<MenuVo> selectMenuByName(String userName, Integer parentId);
    SysUser selectByUsername(String userName);
    List<UserVo> selectAll(UserDto userDto);
    SysUser selectByNameAndPwd(UserDto user);

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);
}
